package la.iok.hzsvn.lewin.movie.shopmovie.model;

import java.util.Objects;

public class ShopMovieParam {
    /**
     * 所属店铺的id。如果是超级管理员操作,则需要提供创建的剧本所属店铺。如果是店铺内人员创建,则使用登录时的店铺id
     */
    private Long orgUnitId;
    /**
     * 剧本id
     */
    private Long movieId;
    /**
     * 剧本版本
     */
    private String movieVersion;

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public Long getMovieId() {
        return movieId;
    }

    public void setMovieId(Long movieId) {
        this.movieId = movieId;
    }

    public String getMovieVersion() {
        return movieVersion;
    }

    public void setMovieVersion(String movieVersion) {
        this.movieVersion = movieVersion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShopMovieParam param = (ShopMovieParam) o;
        return Objects.equals(orgUnitId, param.orgUnitId) && Objects.equals(movieId, param.movieId) && Objects.equals(movieVersion, param.movieVersion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orgUnitId, movieId, movieVersion);
    }
}
